<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link type="text/css" rel="stylesheet" href="__PUBLIC__/Admin/css/style.css" />
	<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery-1.8.3.min.js">
	</script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/menu.js"></script>
	<style type="text/css">
		html{
			overflow-y: scroll;
		}
		#addform{
			
			margin: 15px auto 10px auto;
		}
		table{
			width: 100%;
			text-align: center;
			margin-left: auto;
			margin-right: auto;
		}
		table th{
			background-color: #11B6B6;
			color: white;
			font-family: "微软雅黑";
		}
		#pageinfo{
			margin: 15px auto;
			text-align: center;
		}
		#updateform{
			width: 450px;
			background: white;
			height: 150px;
			border: solid 3px #DDDDDD;
			position: absolute;
			top: 25%;
			left: 25%;
			display: none;
			
		}
		#updateform p{
			margin-top: 20px;
			margin-left: 20px;
		}
		#spanX{
			position: absolute;
			top: 2px;
			right: 3px;
		}
	</style>
</head>
<body>
	<div class="right-nav">
          <ul>
              <li><img src="__PUBLIC__/Admin/images/home.png"></li>
                <li style="margin-left:25px;">您当前的位置：</li>
                <li><a href="#">个人管理</a></li>
                <li>></li>
                <li><a href="#">管理员修改</a></li>
            </ul>
            <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="__MODULE__/Index/index" target="_top">【返回】</a>
             </span>
      </div>
	
	
    	<div class="list-div" id="listDiv">
    	<form action="__MODULE__/Person/upd" method="post" target="_top">
    	<input type="hidden" name="id" value="{$info.id}"/>
			<table id="list-table" border="1" width="100%" class="table_a">
                 <tr>
                    <td>管理员姓名</td>
                    <td><input type="text" name="admin_name"  value="{$info.admin_name}"/>
                    
                    <span style="color:red; ">
                    {$errorinfo.admin_name}
                    </span></td>
                    
                </tr>
                <tr>
                    <td>管理员密码</td>
                    <td width="60%">
                    
                    <input type="text" name="pwd" />
					
                    <span style="color:red;" >
					{$errorinfo.pwd}
                    </span></td>
                    
                </tr>
                
                   
                
                
                
                
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="修改">
                    </td>
                </tr>  
            </table>
           </form>
		</div>
	
	
	<script type="text/javascript">
		function funAjax(id,cat_name,order,parentid){
			document.getElementById("updateform").style.display="block";
			document.getElementById("catid").value=id;
			document.getElementById("parentid").value=parentid;
			document.getElementById("updatsort").value=order;
			document.getElementById("catname").value=cat_name;
		}
		var closewind=document.getElementById("spanX");
		closewind.onclick=function(){
			document.getElementById("updateform").style.display="none";
		}
	</script>
	
	<script>
	/**
	 * 折叠分类列表
	 */
	var imgPlus = new Image();
	imgPlus.src = "__PUBLIC__/Admin/images/menu_plus.gif";
	
	function rowClicked(obj)
	{
	  // 当前图像
	  img = obj;
	  // 取得上二级tr>td>img对象
	  obj = obj.parentNode.parentNode;
	  // 整个分类列表表格
	  var tbl = document.getElementById("list-table");
	  // 当前分类级别
	  var lvl = parseInt(obj.className);
	  // 是否找到元素
	  var fnd = false;
	  var sub_display = img.src.indexOf('menu_minus.gif') > 0 ? 'none' : 'table-row' ;
	  // 遍历所有的分类
	  for (i = 0; i < tbl.rows.length; i++)
	  {
	      var row = tbl.rows[i];
	      if (row == obj)
	      {
	          // 找到当前行
	          fnd = true;
	          //document.getElementById('result').innerHTML += 'Find row at ' + i +"<br/>";
	      }
	      else
	      {
	          if (fnd == true)
	          {
	              var cur = parseInt(row.className);
	              var icon = 'icon_' + row.id;
	              if (cur > lvl)
	              {
	                  row.style.display = sub_display;
	                  if (sub_display != 'none')
	                  {
	                      var iconimg = document.getElementById(icon);
	                      iconimg.src = iconimg.src.replace('plus.gif', 'minus.gif');
	                  }
	              }
	              else
	              {
	                  fnd = false;
	                  break;
	              }
	          }
	      }
	  }
	
	  for (i = 0; i < obj.cells[0].childNodes.length; i++)
	  {
	      var imgObj = obj.cells[0].childNodes[i];
	      if (imgObj.tagName == "IMG" && imgObj.src != '__PUBLIC__/Admin/images/menu_arrow.gif')
	      {
	          imgObj.src = (imgObj.src == imgPlus.src) ? '__PUBLIC__/Admin/images/menu_minus.gif' : imgPlus.src;
	      }
	  }
	}
	</script>
	
</body>
</html>